const express = require('express');
const db = require('../uilit/mysql');

const router=express.Router();

// 获取前端传递的招聘信息数据，保存在招聘信息表中
router.post('/addjob',(req,res)=>{
    const sqljob=`insert into job values(NUll,${parseInt(req.body.id)},'${req.body.job}','${req.body.agerequire}',
                  '${req.body.edurequire}','${req.body.jobyear}','${req.body.hiringnum}','${req.body.jobrequire}',
                  '${req.body.money}','${req.body.time}','${req.body.good}','${req.body.othergood}',
                  '${req.body.address}','${req.body.date}');`
});

module.exports=router;